package nayasis.common.device.input;

import nayasis.common.log.NLogger;

public class TestGamePad {

	public static void main( String[] args ) {

		GamePadEventManager.getInstance().start();

		GamePadEventManager.getInstance().addEvent( new GamePadEventHandler() {
			public void handle( GamePadEvent event ) {
				
				NLogger.debug.println( "UP : @", event.getPovValue() == GamePadEvent.POV.UP );
				
			}
		});

		GamePadEventManager.getInstance().addEvent( new GamePadEventHandler() {
			public void handle( GamePadEvent event ) {
				
				NLogger.debug.println( "DOWN : @", event.getPovValue() == GamePadEvent.POV.DOWN );
				
			}
		});
		
		
	}

}
